<div class="share-box redes-sociais">	
	<span class="tit-sidebar">Redes Sociais</span>						
	<div id="tabs">
		<ul class="ul-tabs">
			<li class="twitter"><a href="#twitter-tab">twiter</a></li>
			<li class="facebook"><a href="#facebook-tab">facebook</a></li>
			<li class="youtube"><a href="#youtube-tab">youtube</a></li>
		</ul>
		<div class="wrapper-tabs">
			<div id="twitter-tab">
				<h4><a target="_blank" href="http://twitter.com/<?php echo get_custom('login_twitter'); ?>" title="Siga o twitter do José Mentor">twitter</a></h4>
				<div id="twitter_widget" class="content-twitter">
					<ul>
					<?php
						require_once("twitteroauth/twitteroauth/twitteroauth.php"); //Path to twitteroauth library
						 
						$twitteruser = get_custom('login_twitter');
						$notweets = 20;
						$consumerkey = "IGDXkmZdZFNfGEL06vLQNw";
						$consumersecret = "lmXcjqkpGh1DMFeK2Z5F2DpSpJtPNRoUIWo9xMsmQ";
						$accesstoken = "891140432-B66hoJZBrbQvetSHkRY0vtouoCYsFLj8E1X2elmQ";
						$accesstokensecret = "tSpWRaKARLqmYnbbvmIDOvXdxZOsBwYdzuPDAzM0A";
						 
						function getConnectionWithAccessToken($cons_key, $cons_secret, $oauth_token, $oauth_token_secret) {
						  $connection = new TwitterOAuth($cons_key, $cons_secret, $oauth_token, $oauth_token_secret);
						  return $connection;
						}
						 
						$connection = getConnectionWithAccessToken($consumerkey, $consumersecret, $accesstoken, $accesstokensecret);
						 
						$tweets = $connection->get("https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=".$twitteruser."&count=".$notweets);
						 
						foreach($tweets as $tweet){
							echo '<li>@' . $tweet->user->screen_name . '<p>' . $tweet->text . '</p></li>';
						}
					?>
					</ul>
					<span class="clear"></span>
				</div>
				<a class="twitter-rodape-widget" href="http://twitter.com/<?php echo get_custom('login_twitter'); ?>" target="blank">siga jose Mentor no twitter</a>
			</div>
			<div id="facebook-tab">
				<iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fdepjosementor&amp;width=250&amp;height=590&amp;colorscheme=light&amp;show_faces=true&amp;header=true&amp;stream=true&amp;show_border=false" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:250px; height:590px;" allowTransparency="true"></iframe>
				<span class="clear"></span>
			</div>
			<div id="youtube-tab">
				<div class="content-orkut">
					<ul>
						
					</ul>
				</div>
				<span class="clear"></span>
			</div>			
		</div><!-- /wrapper-tabs -->
	</div>
</div><!-- /share-box -->